package com.zzty.springmybatis.DAO;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.zzty.springmybatis.entity.Clazz;

public interface ClazzDAO {
	//
	@Select("select id from clazz where name = #{name}")
	public int searchClazzidByName(String name);

	@Select("select * from clazz")
	public List<Clazz> getAllClazz();
	
	@Select("select #{sql} from clazz" )
	public List<Clazz> selectBySql(String sql);

}
